package com.baizhi.service;

import com.baizhi.entity.CmfzAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ljh
 * @since 2020-08-18
 */
public interface CmfzAdminService extends IService<CmfzAdmin>, UserDetailsService {

    public CmfzAdmin selectByUsername(String username);

    public PageInfo<CmfzAdmin> selectAllAdmin(Integer page, Integer limit);

    public void addAdmin(String username, String password, List<Integer> roleIds);


    public void deleteAdmin(Integer id);
}
